import Vue from 'vue'
import Router from 'vue-router'
import _import from './_import'
import Layout from '@/views/join/index'

Vue.use(Router)

export const indexRouter = {
    path: '/',
    name: '主页',
    component: Layout,
    redirect: '/zsjm/index'
}

//业务页面
export const bizRouter = [
    {
        path: '/zsjm',
        component: Layout,
        children: [
            {path: 'index', name: '招商加盟', component: _import('join/XTable')}
        ]
    },
    {
        path: '/Hxtzld',
        component: Layout,
        children: [
            {path: 'index', name: '核心投资亮点', component: _import('join/Hxtzld')}
        ]
    },
    {
        path: '/Jm5dys',
        component: Layout,
        children: [
            {path: 'index', name: '加盟5大优势', component: _import('join/Jm5dys')}
        ]
    },
    {
        path: '/Jmsygs',
        component: Layout,
        children: [
            {path: 'index', name: '加盟收益概述', component: _import('join/Jmsygs')}
        ]
    },
    {
        path: '/Pthppjs',
        component: Layout,
        children: [
            {path: 'index', name: '平台和品牌介绍', component: _import('join/Pthppjs')}
        ]
    },
    {
        path: '/Qc8dzc',
        component: Layout,
        children: [
            {path: 'index', name: '全程8大支持', component: _import('join/Qc8dzc')}
        ]
    },
    {
        path: '/Zcscqj',
        component: Layout,
        children: [
            {path: 'index', name: '租车市场前景', component: _import('join/Zcscqj')}
        ]
    }
]



export const constantRouters = [
    indexRouter,
    ...bizRouter
]

export default new Router({
  routes: constantRouters
})
